import Index from "../views/wisdom_eat/layout/Index.vue";
import DishesList from "../views/wisdom_eat/business/DishesList.vue";
import OrderList from "../views/wisdom_eat/business/OrderList.vue";
import BusinessInfo from "../views/wisdom_eat/business/BusinessInfo.vue";
import BusinessRegister from "../views/wisdom_eat/business/BusinessRegister.vue";
import StuIndex from "../views/wisdom_eat/layout/StuIndex.vue";
import SOrderList from "../views/wisdom_eat/student/SOrderList.vue";
import Canteen from "../views/wisdom_eat/student/Canteen.vue";
import AdminIndex from "../views/wisdom_eat/layout/AdminIndex.vue";
import Announcement from "../views/wisdom_eat/admin/Announcement.vue";
import Application from "../views/wisdom_eat/admin/Application.vue";
import Business from "../views/wisdom_eat/admin/Business.vue";
import Dishes from "../views/wisdom_eat/admin/Dishes.vue";

const wisdomEatRoutes = [
    {
        path: '/wisdomeatmanage',
        redirect: '/wisdomeatmanage/dishlist',
        component: Index,
        children: [
            {
                path: 'dishlist',
                component: DishesList
            },
            {
                path: 'orderlist',
                component: OrderList
            },
            {
                path: 'businessinfo',
                component: BusinessInfo
            },
        ]
    },
    {
        path: '/wisdomeat',
        redirect: '/wisdomeat/canteen',
        component: StuIndex,
        children: [
            {
                path: 'canteen',
                component: Canteen
            },
            {
                path: 'sorderlist',
                component: SOrderList
            },
            {
                path:'/businessreg',
                component: BusinessRegister
            },
        ]
    },
    {
        path:'/wisdomeatadmin',
        redirect: '/wisdomeatadmin/announcement',
        component: AdminIndex,
        children: [
            {
                path:'announcement',
                component: Announcement
            },
            {
                path: 'applyment',
                component: Application
            },
            {
                path: 'business',
                component: Business
            },
            {
                path: 'dishes',
                component: Dishes
            }
        ]
    }

]

export default wisdomEatRoutes